<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Robocup-denayer-project-a: read-only/trunk/source/motors.h Bron Bestand</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gegenereerd door Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Zoeken');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Hoofd&nbsp;Pagina</span></a></li>
      <li><a href="annotated.html"><span>Klassen</span></a></li>
      <li class="current"><a href="files.html"><span>Bestanden</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
          <span class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Zoeken" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </span><span class="right"></span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;Lijst</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>read-only/trunk/source/motors.h</h1>  </div>
</div>
<div class="contents">
<a href="motors_8h.html">Ga naar de documentatie van dit bestand.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef MOTOR_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define MOTOR_H_</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a><a class="code" href="motors_8h.html#a36208f4d8f6bf4414ee96a62690fae87">00012</a> <span class="preprocessor">#define COMLEN                  4</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a><a class="code" href="motors_8h.html#adaa6428b3f3b92676ba73f27b1ed8035">00014</a> <span class="preprocessor">#define MOTOR_BRAKE             0</span>
<a name="l00015"></a><a class="code" href="motors_8h.html#aecfc8cb31c77ff43036a88e475f0198d">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define MOTOR_FORWARD   2</span>
<a name="l00016"></a><a class="code" href="motors_8h.html#a66ddd712d0c88e8299bdfe5e04d8600f">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define MOTOR_REVERSE   1</span>
<a name="l00017"></a><a class="code" href="motors_8h.html#aa8440cccfcc97f5add592f9b75a9b709">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define MOTORS_SET              0xD0</span>
<a name="l00018"></a><a class="code" href="motors_8h.html#a43e15aafd4e9e5ea875e090d254cdd89">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define MOTORS_ACC              0xE0</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="motors_8h.html#a5dd13af014b612f67220ddd841479c5b">00020</a> <span class="preprocessor">#define MAXV                    0x40</span>
<a name="l00021"></a><a class="code" href="motors_8h.html#ad48f1065143ff465ef941fe907f85830">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define MINV                    0x20</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="comment">//#include &quot;motorSturing.h&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="comment">// Robot class definition</span>
<a name="l00026"></a><a class="code" href="class_motors.html">00026</a> <span class="keyword">class </span><a class="code" href="class_motors.html">Motors</a>
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028         <span class="keyword">public</span>:
<a name="l00029"></a>00029                 <span class="comment">// constructor          </span>
<a name="l00030"></a>00030                 <a class="code" href="class_motors.html#a9ce7e0a99f4a434a2e545d4634b10eec" title="Constructor.">Motors</a>(<span class="keywordtype">int</span> prt,<span class="keywordtype">int</span> br);
<a name="l00031"></a>00031                 <a class="code" href="class_motors.html#af669d235bb9ed93f6951bd256522ce51" title="Destructor.">~Motors</a>(<span class="keywordtype">void</span>);
<a name="l00032"></a>00032 
<a name="l00033"></a>00033                 <span class="keywordtype">void</span> <a class="code" href="class_motors.html#a2a03135d58d03d8a82be9be0ceca1236" title="stopMotors">stopMotors</a>(<span class="keywordtype">void</span>);
<a name="l00034"></a>00034                 <span class="keywordtype">void</span> <a class="code" href="class_motors.html#ae5fe2fd03098baf0fd6e55c1b52a01e9" title="setSpeed">setSpeed</a>(<span class="keywordtype">int</span> spd1,<span class="keywordtype">int</span> dir1,<span class="keywordtype">int</span> spd2,<span class="keywordtype">int</span> dir2);
<a name="l00035"></a>00035                 <span class="keywordtype">void</span> <a class="code" href="class_motors.html#a8492da1f62dcd7034f93fc8441e6579a" title="setSpeedAcc">setSpeedAcc</a>(<span class="keywordtype">int</span> spd1,<span class="keywordtype">int</span> dir1,<span class="keywordtype">int</span> spd2,<span class="keywordtype">int</span> dir2);
<a name="l00036"></a>00036                 <span class="keywordtype">void</span> <a class="code" href="class_motors.html#ae4afe9d4e852132186622c75dc829d6a" title="setParam">setParam</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> param,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> value);
<a name="l00037"></a>00037         
<a name="l00038"></a>00038         <span class="keyword">private</span>:
<a name="l00039"></a>00039             <span class="keywordtype">int</span> poort;
<a name="l00040"></a>00040             <span class="keywordtype">int</span> baudrate;
<a name="l00041"></a>00041             <span class="keywordtype">int</span> direction;
<a name="l00042"></a>00042 }; 
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#endif </span><span class="comment">/* MOTOR_H_ */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Gegenereerd op Do 19 Mei 2011 10:15:28 voor Robocup-denayer-project-a door&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
